package cn.demoxy.model.vo;

import cn.demoxy.converter.LocalDateStringConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @auther demo
 * @date 2022/5/23 9:33
 * 用户VO
 */
@Data
public class DemoUserVO {


    @ExcelProperty(value = "用户名" ,index = 0)
    private String username;

    @ExcelProperty(value = "电话号码" ,index = 1)
    private String phone;

    @ExcelProperty(value = "真实姓名" ,index = 2)
    private String name;

    @ExcelProperty(value = "邮箱" ,index = 3)
    private String email;

    @ExcelProperty(value = "角色名称" ,index = 4)
    private String roleName;

    @ExcelProperty(value = "创建时间" ,index = 5,converter = LocalDateStringConverter.class)
    private LocalDateTime createTime;
}
